package gew.data;

import java.sql.ResultSet;
import java.sql.SQLException;

public class IndicatorSummaryIndicator {
    private final static int ID = 1;
    private final static int DEFINITION = 2;
    private final static int SHORTNAME = 3;
    private final static int URL = 4;
    private final static int UOM = 5;
    private final static int FREQUENCY = 6;
    private final static int MINWIDTH = 7;
    
    private final int id;
    private final String definition;    
    private final String shortname;
    private final String url;
    private final String uom;
    private final String frequency;
    private final int minWidth;

    public IndicatorSummaryIndicator(ResultSet rs)  throws SQLException{
        this.id = rs.getInt(ID);
        this.definition = rs.getString(DEFINITION);
        this.shortname = rs.getString(SHORTNAME);
        this.url = rs.getString(URL);
        this.uom = rs.getString(UOM);
        this.frequency = rs.getString(FREQUENCY);
        this.minWidth = rs.getInt(MINWIDTH);
    }

    public int getId() {
        return id;
    }

    public String getDefinition() {
        return definition;
    }

    public String getShortname() {
        return shortname;
    }

    public String getUrl() {
        return url;
    }

    public String getUom() {
        return uom;
    }

    public String getFrequency() {
        return frequency;
    }

    public int getMinWidth() {
        return minWidth;
    }
    
    
}
